package cn.zcy.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.*;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration
@ComponentScan("cn.zcy")
@Import(MyBatisConfig.class)
@PropertySource(value = "classpath:jdbc.properties")
@EnableTransactionManagement
@EnableAspectJAutoProxy(exposeProxy = true)  //事务注释掉动态代理也能用,只是不能暴露当前代理到线程中
@MapperScan(basePackages = "cn.zcy.mapper")
public class ApplicationConfiguration {
}
